// Road.h: interface for the Road class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ROAD_H__62D40DB4_7015_4075_8084_7379926AD354__INCLUDED_)
#define AFX_ROAD_H__62D40DB4_7015_4075_8084_7379926AD354__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Road  
{
public:
	Road();
	Road(int width,int type,int number);
	Initial(int width,int type,int number,float *control,float HSection,float WSection,float *leftcontrols,float *rightcontrols);
	Render(float x,float y,float z);
	getRtype();
	virtual ~Road();
private:
	float WidthSection;
	float HightSection;
	float XStart_pos,YStart_pos,ZStart_pos;
	float XEnd_pos,YEnd_pos,ZEnd_pos;
	float RWidth,RLong;
	int RType;
	int NumberOfPoint;
	//char *NFControlpoints; //File which keep control points (form of road)
	float *VControls;

	drawRoad();
	//importControlPoints(char *Nfile);
	importControlPoints(float *VControls);
	//setFilePath(char *path);

	float *LeftControls,*RightControls;

	float findDegree(float x_start,float y_start,float x_stop,float y_stop);
	
};

#endif // !defined(AFX_ROAD_H__62D40DB4_7015_4075_8084_7379926AD354__INCLUDED_)
